if (!String.prototype.startsWith) {
    // 判断字符串以某子字符串开头或结尾
    String.prototype.startsWith = function (s) {
        return this.indexOf(s) === 0;
    };
}
